--鼠群
local shuqun = fk.CreateSkill {
    name = "mcdh_shuqun"
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

shuqun:addEffect(fk.TargetConfirming,{
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(self) and player:distanceTo(target) <= 1 and (data.card.trueName == "slash" or data.card:isCommonTrick())
    end,
    on_use = function(self, event, target, player, data)
        local room =player.room
        data.tos[AimGroup.Cancelled] = AimGroup:getAllTargets(data.tos)
        data.tos[AimGroup.Done] = {}
        data.tos[AimGroup.Undone] = {}
        player:drawCards(1,self.name)
        room:loseHp(player,1, self.name)
    end
})

Fk:loadTranslationTable {
    ["mcdh_shuqun"] = "鼠群",
    [":mcdh_shuqun"] = "<br>当一名角色成为【杀】或普通锦囊牌的目标时，若你与其距离为1以内，你可以取消此牌所有目标，然后你摸一张牌并失去1点体力。"
}

return shuqun